﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using MShop.Core.Service.Search;

namespace MShop.Core.Domain
{
    //[MetadataType(typeof(Help_Validation))]
    //public partial class Help : ISearchableContent
    //{
    //    public string RedirectUrl { get; set; }

    //    #region ISearchableContent Members

    //    public string ToSearchContent(ITextExtractor textExtractor)
    //    {
    //        return this.Content;
    //    }

    //    public IList<CustomSearchField> GetCustomSearchFields()
    //    {
    //        return new List<CustomSearchField>();
    //    }

    //    public SearchContent ToSearchContent()
    //    {
    //        SearchContent search = new SearchContent();
    //        search.Category = this..Name;
    //        search.DateCreated = this.Created;
    //        search.DateModified = this.Modified.HasValue ? this.Modified.Value : this.Created;
    //        search.Id = this.Id.ToString();
    //        search.Summary = NoHTML(Content);
    //        search.Title = this.Title;
    //        search.Author = this.Author;
    //        search.Path = "/article/item/" + search.Id;
    //        search.Boost = 1f;
    //        return search;
    //    }

    //    #endregion
    //}



    //public partial class Help_Validation
    //{
    //    [DisplayName("标题")]
    //    public string Title { get; set; }

    //    [DataType(DataType.MultilineText)]
    //    [DisplayName("摘要")]
    //    public string Summary { get; set; }

    //    [DisplayName("分类")]
    //    public int CId { get; set; } 

    //    [DisplayName("标题颜色")]
    //    public string TitleColor { get; set; }

    //    [DataType(DataType.MultilineText)]
    //    [DisplayName("内容")]
    //    public string Content { get; set; }

    //    [DisplayName("创建日期")]
    //    public DateTime Created { get; set; } 
      

    //    [DisplayName("是否外链")]
    //    public bool IsRedirect { get; set; }

    //    [DisplayName("外链地址")]
    //    public string RedirectUrl { get; set; }

    //    [DisplayName("首页显示")]
    //    public bool IsMain { get; set; }
    //}
}